const path = require('path')
const { config } = require('process')

function resolve(dir) {
    return path.join(__dirname, dir)
}

module.exports = {
    publicPath: './',
    // 输出文件目录
    outputDir: 'dist',
    chainWebpack: config => {
        //路径配置
        config.resolve.alias
            .set('assets', resolve('src/assets'))
            .set('styles', resolve('src/style'))
    },
    devServer: {

    },
    // 是否生成map文件，map文件有利于定位错误，选false可减小打包体积
    productionSourceMap: false,
}